package com.cn.admin.utils;

import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;

import java.io.Serializable;
import java.util.List;

public interface BaseService<T,T1,ID extends Serializable> {
    int countByExample(T1 example);

    int deleteByPrimaryKey(ID id);
    int deleteByExample(T1 example);
    int insert(T record);
    int insertSelective(T record);
    T selectByPrimaryKey(ID id);
    List<T> selectByExample(T1 example);
    int updateByPrimaryKeySelective(T record);
    int updateByExampleSelective(T record);
    int updateByPrimaryKey(T record);
    int updateByExample(T record,T1 example);

}
